package cc.wanforme.chipmunity.test.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cc.wanforme.chipmunity.test.mapper.UserMapperT;
import cc.wanforme.chipmunity.test.po.User;

/**
 * @author wanne
 * 2019年7月16日
 * 
 */
@Service
@Transactional
public class UserService {
	
	@Autowired
	private UserMapperT userMapper;
	
	public int insert(User user) {
		return userMapper.insertUser(user);
	}
	
	public List<User> list() {
		return userMapper.list();
	}
	
}
